/*
 * TSV.h
 *
 *  Created on: Mar 28, 2011
 *      Author: hxu
 */

#ifndef TSV_H_
#define TSV_H_
#include "BtreeNode.h"

namespace Cxuh {

class TSV: public Cxuh::BtreeNode {
	friend class Btree;
public:
	TSV(int id1);
	TSV(int id1, int x1, int y1, int z1, int z_2); // r and c are unit rc
	virtual ~TSV();
	virtual int getZ2(){return z2;}
	int getL() const; // get the length of TSV
	double getD() const;
	double getRout();
	double getCin();
	virtual void setXYZ(int x1, int y1, int z1, int z_2);

	static double R, C;
	static double Rvar[2], Cvar[2];
private:
	int z2; // tier of the children
};

}

#endif /* TSV_H_ */
